package com.idis.managerApp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Ming on 2018/1/30.
 */

/**
 * 后台视图控制器
 */
@Controller
@RequestMapping("/admin")
public class ViewController {

    @GetMapping(value = {"/teacher"})
    public String teacher(){
        return "teacher_alter";
    }

    @GetMapping(value = "/test")
    public String test(){
        return "test";
    }

    @RequestMapping(value = {"/intro",""})
    public String intro(){
        return "backstage";
    }

    @RequestMapping("/work")
    public String work(){
        return "works_alter";
    }

    @RequestMapping("/member")
    public String member(){
        return "member_alter";
    }

    @RequestMapping("/contact")
    public String contact(){
        return "contact_alter";
    }

    @RequestMapping("/user")
    public String user(){
        return "sysmanger";
    }

}
